<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="hmg.vo.BoardVO"%>
<%@ page import="java.util.List"%>
<%-- 
    JSP Name : jspName.jsp
    Description : 설명을 기술합니다.
    author Kim hyung soo
    since 2012. 9. 18.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 9. 18.     Kim hyung soo     최초 생성
--%>
<%
    List<BoardVO> recruitList = (List<BoardVO>) request.getAttribute("RecruitList");

    if (recruitList == null || recruitList.size() == 0)
        out.println("                                <dl style=\"text-align:center;\">검색된 게시물이 없습니다.</dl>");
    else {
        for (int idx = 0; idx < recruitList.size(); idx++) {
            BoardVO recruit = recruitList.get(idx);

            if (idx + 1 < recruitList.size())
                out.println("                                <dl>");
            else
                out.println("                                <dl class=\"last\">");
%>
                                    <dt class="company"><%= recruit.getCompName() %></dt>
                                    <dd class="information" style="width:670px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;">
                                        <a href="/hmg/web/kor/job/rct/RecruitView.do?listID=<%= recruit.getListID() %>&compType=0"><%= recruit.getTitle() + recruit.getTitle() %></a>
                                    </dd>
                                    <dd class="etc">
                                        <span class="career"><%= recruit.getListName() %></span>
                                        <span class="period"><%= recruit.getEffectDate() %> ~ <%= recruit.getExpireDate() %></span>
<%
            if (recruit.getDday().equals("-1") == true)
                out.println("           <span class=\"day end\">마감</span>");
            else
                out.println("           <span class=\"day\">D-" + recruit.getDday() + "</span>");
%>
                                    </dd>
                                </dl>
<%
        }
    }
%>